lcWndGetEntsByPoint Home

Returns an array of entities which are placed at the specified window point, within pickbox surroundings. The size of the pickbox is defined by the LC_PROP_G_PICKBOXSIZE property.

 int lcWndGetEntsByPoint (
   HANDLE hLcWnd,
   int Xwin,
   int Ywin
   int nMaxEnts
 );

Parameters
hLcWnd
  Handle to LiteCAD graphics window.
Xwin Ywin
  Coordinate in LiteCAD window. If -1 specified for both parameters, then cursor coordinates will be used.
nMaxEnts
  Maximal number of entities that can be retrieved. You can specify -1 to retrieve unlimited number of entities.
In order to free the inner memory buffer set 0.

Return Value

  A number of found entities.

Remarks

  Found entities can be retrieved by the lcWndGetEntity function.

See Also

  Code sample,   lcWndGetEntsByRectlcWndGetEntByPoint